package com.wc.算法基础课.D第四讲数学知识.质数.约数的个数;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2024/4/4 23:11
 * @description https://www.acwing.com/problem/content/description/3380/
 */
public class Main {
    static int n, x;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        while (n-- > 0) {
            x = sc.nextInt();
            long res = 1;
            for (int i = 2; (long) i * i <= x; i++) {
                if (x % i == 0) {
                    int s = 0;
                    while (x % i == 0) {
                        s++;
                        x /= i;
                    }
                    res *= (s + 1);
                }
            }
            if (x > 1) res *= 2;
            System.out.println(res);
        }
    }
}
